﻿using System;
using System.ComponentModel.DataAnnotations;

namespace EduFormManager.Models
{
    public class Answer : Entity
    {
        [Flags]
        public enum AnswerType : short
        {
            [Display(Name = "Галочка")]
            Check = 1,
            [Display(Name = "Текст")]
            Text = 2
        }
        public virtual string Title { get; set; }
        public virtual Question Question { get; set; }
        public virtual AnswerType Type { get; set; }
        public override string ToString()
        {
            return this.Title;
        }
    }
}
